
if True:
    n = 8
    isUp = False
    print(time.time())
    for i in range(n):
        if isUp:
            net.get('r1').cmd('ifconfig r1-eth0 down')
            isUp = False
        else:
            net.get('r1').cmd('ifconfig r1-eth0 up')
            isUp = True

